//
//  MessageAudioRecoder.h
//  MobileOA
//
//  Created by liqing-mac on 14-2-26.
//  Copyright (c) 2014年 chenxiaojuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreAudio/CoreAudioTypes.h>


@protocol MessageAudioRecoderDelegate <NSObject>
@optional

-(void)detectionVoiceWithRecoder:(NSInteger) volue;

@end

@interface MessageAudioRecoder : NSObject{


    NSTimer *timer;
    BOOL ispase;
    NSURL *urlPlay;
    AVAudioRecorder *recorder;
}
- (void)playRecordSoundWithURL:(NSURL *)url;
-(BOOL)startRecoder;
-(void)paseRecoder;
-(void)continueRecoder;
-(NSURL *)completeRecoder;
@property (retain, nonatomic) AVAudioPlayer *avPlay;

@property(assign)id<MessageAudioRecoderDelegate> delegate;
@end
